import request from '@/api/utils/request';

// 宿舍考核列表 分页查询
export const dormitoryCheckList = data =>
  request({
    method: 'post',
    url: '/schExamine/dormitoryCheckList',
    data
  });
// 宿舍考核综合查询
export const dormitoryComplex = data =>
  request({
    method: 'post',
    url: '/schExamine/dormitoryComplex',
    data
  });
// 宿舍考核详情---宿舍
export const dormitoryDetails = data =>
  request({
    method: 'get',
    url: '/schExamine/dormitoryDetails',
    params: data
  });
// 宿舍集体考核---删除
export const delDetails = data =>
  request({
    method: 'post',
    url: '/schExamine/delete',
    data
  });

// 宿舍考核详情---宿舍
export const dormitoryCheckDetail = data =>
  request({
    method: 'get',
    url: '/schExamine/dormitoryCheckDetail',
    params: data
  });

// 宿舍集体考核详情-综合检查-
export const dormitoryCheckDetailCount = data =>
  request({
    method: 'get',
    url: '/schExamine/dormitoryCheckDetailCount',
    params: data
  });

// 宿舍考核-综合查询-排名
export const dormitoryCheckRanking = data =>
  request({
    method: 'post',
    url: '/schExamine/dormitoryCheckRanking',
    data
  });
// 宿舍考核列表-导出
export const exportDormitoryExamine = data =>
  request({
    method: 'post',
    url: '/schExamine/exportDormitoryExamine',
    data,
    responseType: 'blob'
  });

// 宿舍集体考核-综合检查-导出
export const exportDormitoryComplex = data =>
  request({
    method: 'post',
    url: '/schExamine/exportDormitoryComplex',
    data,
    responseType: 'blob'
  });

// 宿舍集体考核-综合检查-排名导出
export const exportdormitoryCheckRanking = data =>
  request({
    method: 'post',
    url: '/schExamine/exportdormitoryCheckRanking',
    data,
    responseType: 'blob'
  });
